<?php
/**
 * Setup theme options used in customizer.
 *
 * @package ThinkUpThemes
 */


function ms_banner_customizer_theme_options( $wp_customize ) {

	$wp_customize->add_section('header_logo',array(
		'title'     => '博主头像',
		'priority'  => 50
	) );
	$wp_customize->add_setting( 'header_logo_image', array(
		'default'   => '',
		"transport" => "postMessage",
		'type'      => 'option'
	) );
	$wp_customize->add_setting( 'header_logo_image[A]', array(
		'default'   => '',
		"transport" => "postMessage",
		'type'      => 'option'
	) );
	$wp_customize->add_setting( 'header_logo_image[B]', array(
		'default'   => '',
		"transport" => "postMessage",
		'type'      => 'option'
	) );
/*	$wp_customize->add_control(new MS_Banner_Customize_Control($wp_customize,'header_logo_image'),array(
		'label'     => '博主头像',
		'section'         => 'header_logo',
	));*/
/*	$wp_customize->add_control(		new alante_thinkup_customizer_customcontrol_switch(
		$wp_customize,
		'header_logo_image',
		array(
			'settings'        => 'header_logo_image',
			'section'         => 'header_logo',
			'label'           => __( 'Enable Breadcrumbs', 'alante' ),
			'description'	  => __( 'Switch on to enable breadcrumbs.', 'alante' ),
			'choices'		  => array(
				'1'      => __( 'On', 'alante' ),
				'off'    => __( 'Off', 'alante' ),
			),
			'active_callback' => '',
		)
	));*/
/*	$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'header_logo_image[A]', array(
		'label'     => '博主头像',
		'section'   => 'header_logo'
	) ) );*/
	$wp_customize->add_control( new MS_Banner_Customize_Control( $wp_customize, 'header_logo_image[B]', array(
		'label'     => '博主头像2',
		'section'   => 'header_logo'
	) ) );
}
add_action( 'customize_register', 'ms_banner_customizer_theme_options' );